$OpenBSD: patch-relay_relay_c,v 1.1 2013/05/10 09:56:45 sthen Exp $
--- relay/relay.c.orig	Mon Jul  7 09:10:02 1997
+++ relay/relay.c	Fri May 10 10:49:50 2013
@@ -117,7 +117,7 @@ static void relay_tocli();
 static void forwarding();
 int open_if();
 
-void
+int
 main(argc, argv)
   int argc;
   char **argv;
@@ -179,7 +179,12 @@ main(argc, argv)
 #ifndef LOG_PERROR
 #define LOG_PERROR	0
 #endif
+#ifndef __OpenBSD__
     openlog("relay", LOG_PID | LOG_CONS | LOG_PERROR, LOG_LOCAL0);
+#else
+    /* Using LOG_LOCAL1 to avoid OpenBSD ipmon log conflict */
+    openlog("relay", LOG_PID | LOG_CONS | LOG_PERROR, LOG_LOCAL1);
+#endif
 
   if (debug == 0) become_daemon();
   if (if_list == NULL) usage();
